package  
{
	import org.flixel.FlxSprite;
	
	/**
	 * ...
	 * @author Kyl
	 */
	public class BallTarget extends FlxSprite 
	{
		
		
		
		public function BallTarget(xPos:Number, yPos:Number, id:int, rotate:Boolean) 
		{
			super(xPos, yPos);
			if ( rotate )
			{
				width = 20;
				height = 100;
				loadGraphic(Image, false, false, 20, 100, false);
			}
			else
			{
				width = 100;
				height = 20;
				loadGraphic(ImageH, false, false, 100, 20, false);;
			}
			
			immovable = true;
			visible = true;
			solid = true;
			
			_Id = id;
			
			//makeGraphic(width, height, 0xffff00ff);
		}
		
		// Our ID
		private var _Id:int;
		[Embed (source = "balltarget.png")]
		private var Image:Class;
		[Embed (source = "balltargeth.png")]
		private var ImageH:Class;
		
		public function getId() : Number
		{
			return _Id;
		}
	}
}